hours_played = 15

if hours_played >= 50:
    trophy_name = "英勇老兵"
elif hours_played >= 10:
    trophy_name = "活跃冒险家"
else:
    trophy_name = "实习旅行者"

print(trophy_name)


## 第一步参考答案：
def get_time_trophy(hours_played):
    if hours_played >= 50:
        trophy_name = "英勇老兵"
    elif hours_played >= 10:
        trophy_name = "活跃冒险家"
    else:
        trophy_name = "实习旅行者"
    return trophy_name

print(get_time_trophy(8))


## 第二步在最下面增加
print(get_time_trophy(2))
print(get_time_trophy(11))
print(get_time_trophy(33))
print(get_time_trophy(55))

## 第三步参考答案：
def get_time_trophy(hours_played):
    if hours_played >= 50:
        trophy_name = "英勇老兵"
    elif hours_played >= 24:
        trophy_name = "谦逊英雄"
    elif hours_played >= 10:
        trophy_name = "活跃冒险家"
    else:
        trophy_name = "实习旅行者"
    return trophy_name

print(get_time_trophy(8))
print(get_time_trophy(2))
print(get_time_trophy(11))
print(get_time_trophy(33))
print(get_time_trophy(55))